/**
 * @author pzy
 * @date 2024/6/20
 */
public class IntegerCacheDemo {
    public static void main(String[] args) {
        Integer i1 = 11;
        Integer i2 = 11;
        System.out.println(i1 == i2);
        Integer i3 = new Integer(11);
        Integer i4 = new Integer(11);
        System.out.println(i3 == i4);
        Integer i5 = Integer.valueOf(11);
        System.out.println(i1 == i5);
        System.out.println(i3 == i5);
    }
}
